package com.cskaoyan.bean.user;

import com.cskaoyan.util.DateUtils;
import lombok.Data;

import java.util.Date;

/**
 * \* Description:
 * \
 */
@Data
public class FeedbackVo {
    private Integer id;

    private Integer userId;

    private String username;

    private String mobile;

    private String feedType;

    private String content;

    private Integer status;

    private Boolean hasPicture;

    private String[] picUrls;

    private String addTime;

    private String updateTime;

    private Boolean deleted;

    public FeedbackVo(Feedback feedback) {
        this.id = feedback.getId();
        this.userId = feedback.getUserId();
        this.username = feedback.getUsername();
        this.mobile = feedback.getMobile();
        this.feedType = feedback.getFeedType();
        this.content = feedback.getContent();
        this.status = feedback.getStatus();
        this.hasPicture = feedback.getHasPicture();
        this.picUrls = feedback.getPicUrls();
        this.addTime = DateUtils.dateFormat(feedback.getAddTime());
        this.updateTime = DateUtils.dateFormat(feedback.getUpdateTime());
        this.deleted = feedback.getDeleted();
    }

    public FeedbackVo() {
    }
}
